import request from '@/utils/request'

export function queryAllCommodity(params) {
  return request({
    url: '/commodity/queryAllCommodity',
    method: 'get',
    params
  })
}

export function insertCommodity(params) {
  return request({
    url: '/commodity/insertCommodity',
    method: 'get',
    params
  })
}

export function updateCommodity(params) {
  return request({
    url: '/commodity/updateCommodity',
    method: 'get',
    params
  })
}

export function deleteById(params) {
  return request({
    url: '/commodity/deleteById',
    method: 'get',
    params
  })
}

export function addHeat(params) {
  return request({
    url: '/commodity/addHeat',
    method: 'get',
    params
  })
}
